package com.woniu.mapper;


import com.github.yulichang.base.MPJBaseMapper;
import com.woniu.entity.AllMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author zhaoj
 * @Date 2025/6/16 03:40
 * @Description 按用户id查询后台菜单
 * @Params
 * @Return
 **/
@Mapper
public interface AllMenuMapper extends MPJBaseMapper<AllMenu> {
    @Select("select m.* from all_menu m join rel_role_menu rm on m.menu_id=rm.menu_id join all_user au on rm.role_id=au.role_id where au.user_id = #{uid} and m.status=1")
    List<AllMenu> selectMenuByUid(Integer uid);
}
